package com.forenow.demo.demo4;

public class Dog extends Pet {


    @Override
    public void toHospital() {
        this.setHealth(60);
    }

    @Override
    public void eat() {
        System.out.println("dog---eat");
    }
    public  void run(){
        System.out.println("dog---run");
    }
}
